const articleType = 0;

function getArticleTem() {
  if (articleType === 0) {
    return <div>我是无图文章</div>;
  } else if (articleType === 1) {
    return <div>我是单图文章</div>;
  } else {
    return <div>我是三图文章</div>;
  }
}

function App() {
  return <div>{getArticleTem()}</div>;
}

export default App;
